# -*- coding: utf-8 -*-

from w.blocks.block import BaseBlock as Block
from w.blocks.containers.ulist import UList as UListContainer

class Error(Exception):
    pass

class UList(UListContainer, Block):
    scriptFiles = ['w/blocks/ulist.js']

    def __init__(self, *argv, **kwargv):
        UListContainer.__init__(self, *argv, **kwargv)
        Block.__init__(self, *argv, **kwargv)
        
        self.tag.html.id='dom%s'%self.blockID

    def make(self, content=[]):
        return Block.make(self, UListContainer.make(self, content))

